C1.LiveLinq Namespace > LiveViewExtensions Class > AsLive Method : AsLive<T>(IBindingList,ViewOrder) Method |
'Declaration
Public Overloads Shared Function AsLive(Of T)( _ ByVal source As System.ComponentModel.IBindingList, _ ByVal order As ViewOrder _ ) As View(Of T)
Use this method to build views from existing data sources. The only requirements for the data source is that it implements the standard data binding interface System.ComponentModel.IBindingList.
If the order parameter specifies preserving item order, the order of items in the source is preserved, at a certain performance cost, in the resulting view and in views based on it (for example, if you filter it with Where).
Note that Join does not preserve source order. If you need to order a join result, use OrderBy after Join.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2